﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;


namespace Pigmalion.DataAccess
{
    public abstract class MasterRepository
    {
        //public IUnityContainer ContainerService { get; set; }

        //public MasterRepository()
        //{
        //    this.ContainerService = new UnityContainer(); 
        //}
    }

    public abstract class MasterDAABRepository : MasterRepository
    {
        public Database PigmalionDatabase { get; set; }

        public MasterDAABRepository()
        {
            PigmalionDatabase = EnterpriseLibraryContainer.Current.GetInstance<Database>("PigmalionCnx");
        }
    }
}
